package com.example.springcloud;

import com.example.myrule.MyRibbonRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author :lihao
 * @date :2020/11/27
 * @description : 主启动类
 */
@SpringBootApplication
@EnableEurekaClient
@EnableCircuitBreaker
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT", configuration = MyRibbonRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}